package com.ruoyi.wms.domain.bo.partolStore;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import com.ruoyi.common.mybatis.core.domain.BaseEntity;
import com.ruoyi.wms.domain.entity.partolStore.Equipment;
import io.github.linpeilie.annotations.AutoMapper;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.util.Date;

/**
 * 设备信息档案业务对象 equipment
 *
 * @author 邓滔滔
 * @date 2024-11-24
 */

@Data
@EqualsAndHashCode(callSuper = true)
@AutoMapper(target = Equipment.class, reverseConvertGenerate = false)
public class EquipmentBo extends BaseEntity {


    private Long id;
    /**
     * 设备名称
     */
    @NotBlank(message = "设备名称不能为空", groups = {AddGroup.class, EditGroup.class})
    private String equipmentName;


    /**
     *所属门店
     */
    @NotNull(message = "所属门店不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long storeId;

    /**
     * 设备类型
     */
    @NotBlank(message = "设备类型不能为空", groups = {AddGroup.class, EditGroup.class})
    private String equipmentType;

    /**
     * 型号
     */
    private String model;

    /**
     * 序列号
     */
    private String serialNumber;

    /**
     * 购买时间
     */
    private Date purchaseDate;

    /**
     * 保修期到期日期
     */
    private Date warrantyPeriod;

    /**
     * 设备状态
     */
    @NotNull(message = "设备状态不能为空", groups = {AddGroup.class, EditGroup.class})
    private Integer status;

    /**
     * 上次保养日期
     */
    private Date lastMaintenanceDate;

    /**
     * 下次巡检日期
     */
    private Date nextInspectionDate;

    /**
     * 责任人ID
     */
    @NotNull(message = "责任人ID不能为空", groups = {AddGroup.class, EditGroup.class})
    private Long responsiblePersonId;

    /**
     * 备注
     */
    private String notes;


}
